<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.hrms.pojo.Admin"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>系统管理员界面</title>
</head>
<body background="<%=path%>/images/background.jpg">
	<center>
		<jsp:include page="../top.jsp" flush="true"></jsp:include>
		<table width="800" height="48" border="0" cellpadding="0"
			cellspacing="0" background="<%=path%>/images/center1.jpg">
			<tr>
				<td valign="top">
					<table width="494">
						<tr>
							<td width="45" height="25"></td>
							<td width="437" valign="bottom"><a
								href="<%=path%>/admin/function"><b>主页</b></a>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<table width="800" height="50" border="0" align="center"
			cellpadding="0" cellspacing="0"
			background="<%=path%>/images/center2.jpg">
			<%
				Object obj = session.getAttribute("admin");
				Admin admin = (Admin) obj;
			%>
			<tr>
				<td align="center">您好:<%=admin.getAdminName()%>&nbsp;|&nbsp;<a
					href="<%=path%>/admin/loginout">登出</a>
				</td>
			</tr>
		</table>
		<table width="800" height="340" border="0" cellpadding="0"
			cellspacing="0" background="../images/center2.jpg">
			<tr>
				<td height="243">
					<table width="547" align="center">
						<%
							if (admin.getAdminLevel().equals("1")) {
						%>
						<tr align="center">
							<td height="100"><a href="<%=path%>/admin/add_admin">添加普通管理员</a></td>
							<td width="274"><a href="<%=path%>/admin/list_admin">查看所有管理员</a></td>
						</tr>
						<tr align="center">
							<td height="100"><a href="<%=path%>/admin/alt_pass">修改密码</a></td>
							<td width="274"></td>
						</tr>
						<%
							} else {
						%>
						<tr align="center">
							<td height="100"><a href="<%=path%>/admin/alt_pass">修改密码</a></td>
						</tr>
						<%
							}
						%>
					</table>
				</td>
			</tr>
		</table>
		<jsp:include page="../down.jsp" flush="true" />
	</center>
</body>
</html>